package com.wawu.pojo.query;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * Order 类，表示订单信息。
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OrderQuery {
    private Long id;                    // 订单ID
    private Long userId;                // 用户ID
    private Long goodsDetailId;         // 商品详情ID
    private Integer goodsNum;           // 商品数量
    private Double amount;               // 总金额
    private Integer state;              // 订单状态(0:待付款（购物车）；1：待发货；2：已发货；3：已完成)
    private LocalDateTime updateTime;   // 更新时间
    private LocalDateTime createTime;   // 创建时间

    //区间查询
    private Double minAmount;
    private Double maxAmount;
    private LocalDateTime startDate;
    private LocalDateTime endDate;

}
